/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.inspur.edp.webservicecomponent.metadata.serializer.obsolete;

import com.inspur.edp.caf.cef.schema.element.Operation;
import com.inspur.edp.component.schema.GspComponent;
import com.inspur.edp.component.schema.RefStructureInfo;
import com.inspur.edp.lcm.metadata.api.AbstractMetadataContent;
import com.inspur.edp.webservicecomponent.metadata.serializer.obsolete.sourceinfo.SourceInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Kaixuan Shi
 * @version 0.1
 */
public class WSComponent extends AbstractMetadataContent implements GspComponent {
    private String id;
    private String code;
    private String name;
    private String description;
    private String application;
    private String serviceUnit;
    private String version;
    private List<Operation> operations;
    private List<RefStructureInfo> refStructures=new ArrayList<>();

    private SourceInfo sourceInfo;

    public void setId(String id) {
        this.id = id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public void setServiceUnit(String serviceUnit) {
        this.serviceUnit = serviceUnit;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public void setOperations(List<Operation> operations) {
        this.operations = operations;
    }

    public void setRefStructures(List<RefStructureInfo> refStructures) {
        this.refStructures = refStructures;
    }

    public void setSourceInfo(SourceInfo sourceInfo) {
        this.sourceInfo = sourceInfo;
    }

    @Override
    public Object clone() {
        return null;
    }

    @Override
    public String getId() {
        return this.id;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @Override
    public String getApplication() {
        return this.application;
    }

    @Override
    public String getServiceUnit() {
        return this.serviceUnit;
    }

    @Override
    public String getVersion() {
        return this.version;
    }

    @Override
    public List<Operation> getOperations() {
        return this.operations;
    }

    @Override
    public List<RefStructureInfo> getRefStructures() {
        return this.refStructures;
    }

    public SourceInfo getSourceInfo() {
        return sourceInfo;
    }
}
